import http from './__http__'

import { getBaseURL } from '@/util/comman'

export const getIpConfigApi = () => {
  const baseURL = getBaseURL();
  return http.request({
    url: baseURL + '/GwQuery/NetInfo',
  })
}

export const updateIpConfigApi = (data) => {
  const baseURL = getBaseURL();
  return http.request({
    url: baseURL +  '/GwConfig/NetInfo',
    method: 'post',
    data
  })
}